using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.EntidadesArtes
{
	/// <summary>
	/// A custom serializable dataset containing 
	/// </summary>
	[Serializable()]
	[DesignerCategory("code")]


	/// <summary>Class for handling datasets</summary>  
		public class TipoEmpleoData : DataSet
	{
		///
		/// Constants for table and fields mapping
		///
		public const string ART_TIPO_EMPLEO_TABLE = "ART_TIPO_EMPLEO";

		public const string EMP_ID_FIELD = "EMP_ID";
		public const string EMP_NOMBRE_FIELD = "EMP_NOMBRE";


		protected TipoEmpleoData(SerializationInfo info, StreamingContext context)
		{
			//
		}

		public TipoEmpleoData()
		{
			BuildDataTables();
		}

		/// <summary>
		/// Creates the following datatables: Localidades
		/// </summary>
		private void BuildDataTables()
		{
			DataTable table;
			DataColumnCollection columns;
			table = new DataTable(ART_TIPO_EMPLEO_TABLE);
			columns = table.Columns;

			columns.Add(EMP_ID_FIELD, typeof (Decimal));

			columns.Add(EMP_NOMBRE_FIELD, typeof (String));
			columns[EMP_NOMBRE_FIELD].Caption = "Nombre";

			this.Tables.Add(table);
		}

		/// <summary>
		/// Add a new row to the table
		/// </summary>
		/// <param name="row">Dataset row
		public void addTipoEmpleo(DataRow row)
		{
			this.Tables[ART_TIPO_EMPLEO_TABLE].Rows.Add(row);
		}

	}

}